package com.xj.api;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @author ricky
 * @date 2022/4/29 16:32
 */
@Api(tags = "测试接口")
@RestController
@RequestMapping("/")
public class TestController {

    @ApiOperation("测试接口")
    @GetMapping("/test")
    public String hello() {

        return "hello world";
    }

    @ApiOperation("注册AOP")
    @GetMapping("/aop")
    public String aop() {

        return "hello world";
    }
}
